﻿<%@ control language="C#" autoeventwireup="true" inherits="Modules_Config_wucModulesInstancePropertiesList, MCWF" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:UpdatePanel ID="UpdatePanelList" runat="server">
    <ContentTemplate>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="790px" class="TableGrayBorder">
            <tbody>
                <tr height="30px">
                    <td align="right">
                        <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#f0f2f4">
                            <tbody>
                                <tr height="30px">
                                    <td align="right" valign="middle">
                                        Tên ModulesInstance &nbsp;
                                    </td>
                                    <td align="right" valign="middle" width="205px">
                                        <telerik:RadComboBox ID="rcboModulesInstanceName" runat="server" ShowToggleImage="True" Skin="Vista"
                                            Width="200px" AutoPostBack="True" OnSelectedIndexChanged="rcboModulesInstanceName_SelectedIndexChanged">
                                        </telerik:RadComboBox>
                                    </td>
                                    <td width="2px">
                                        &nbsp;</td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <telerik:RadGrid ID="rgrdGridDataList" runat="server" Skin="WebBlue" Width="790px"
                            PageSize="20" AllowMultiRowSelection="true" AllowPaging="True" ShowGroupPanel="false"
                            AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false"
                            BorderWidth="0px" GridLines="None" AutoGenerateColumns="false" OnPageIndexChanged="rgrdGridDataList_PageIndexChanged"
                            AllowSorting="false" OnItemCommand="rgrdGridDataList_ItemCommand">
                            <ClientSettings EnablePostBackOnRowClick="True">
                                <Selecting AllowRowSelect="True" />
                            </ClientSettings>
                            <PagerStyle Mode="NextPrevAndNumeric" NextPagesToolTip="Trang sau" NextPageToolTip="Trang sau"
                                PagerTextFormat="Lựa chọn trang: {4} &amp;nbsp;Trang {0} / {1}, bản ghi {2} - {3} / {5}."
                                PrevPagesToolTip="Trang trước" PrevPageToolTip="Trang trước" />
                            <MasterTableView DataKeyNames="ModulesInstancePropertiesID">
                                <RowIndicatorColumn Visible="False">
                                    <HeaderStyle Width="20px" />
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Resizable="False" Visible="False">
                                    <HeaderStyle Width="20px" />
                                </ExpandCollapseColumn>
                                <EditFormSettings>
                                    <PopUpSettings ScrollBars="None" />
                                </EditFormSettings>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="ModulesInstancePropertiesID" HeaderText="ID" ReadOnly="True"
                                        UniqueName="ModulesInstancePropertiesID">
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="ModuleInstanceID" HeaderText="ModuleInstanceID"
                                        UniqueName="ModuleInstanceID" ReadOnly="true" ItemStyle-HorizontalAlign="left">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="PropertyID" HeaderText="PropertyID" ReadOnly="true"
                                        UniqueName="PropertyID">
                                    </telerik:GridBoundColumn>                                    
                                     <telerik:GridBoundColumn DataField="PropertyValue" HeaderText="Giá trị Property" ReadOnly="true"
                                        UniqueName="PropertyValue">
                                    </telerik:GridBoundColumn>
                                     <telerik:GridBoundColumn DataField="PropertyNote" HeaderText="Ghi Chú" ReadOnly="true"
                                        UniqueName="PropertyNote">
                                    </telerik:GridBoundColumn>                                                                         
                                    <telerik:GridClientSelectColumn UniqueName="SelectRow" CommandName="RowClick">
                                        <HeaderStyle HorizontalAlign="Center" Width="30px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridClientSelectColumn>
                                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="~/Images/icons/editrow.png"
                                        UniqueName="ControlEdit" CommandName="RowEdit" Text="Sửa">
                                        <ItemStyle CssClass="MyImageButton" HorizontalAlign="Center" Width="30px" />
                                    </telerik:GridButtonColumn>
                                    <telerik:GridButtonColumn ConfirmText="Bạn có muốn xóa bản ghi được lựa chọn?"
                                        ConfirmDialogType="RadWindow" ConfirmTitle="X&#243;a bản ghi" ButtonType="ImageButton"
                                        CommandName="RowDelete" Text="X&#243;a" ImageUrl="~/Images/icons/recyclebin.png"
                                        UniqueName="ControlDelete" >
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" Width="30px"/>
                                    </telerik:GridButtonColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </tbody>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>